package cn.cymym.comm;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class BeingRadom {
	/**
	 * 系统当前时间
	 * @return 字符串样式的时间
	 */
	public String BeingDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		return sdf.format(new Date());	
	}
	/**
	 * 26字母加上时间
	 * @return 字符串样式的 随机26字母加上时间
	 */
	public String beingStrAndDate() {
		String str[] = {"A","B","C","D","E","F","G","H","I","J","K",
				"L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
		Random random = new Random();
		int num = random.nextInt(str.length);
		return str[num]+BeingDate();
		
	}
}
